/**
 * @see [description](https://mp.weixin.qq.com/debug/wxadoc/dev/api/navigateToMiniProgram.html)
 */
export default function navigate_to_mini_program(appId: string, path?: string, extraData?: string, envVersion?: string) {
	return new Promise<boolean>((resolve, reject) => {
		wx.navigateToMiniProgram({
			appId,
			envVersion,
			extraData,
			path,
			success() {
				resolve(true);
			},
			fail(res) {
				reject(res);
			}
		});
	});
}
